<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@attribute name="mentors" required="true" type="java.util.List" %>
<table border="1" align="center">
    <tr>
        <th>Name</th>
        <th>Surname</th>
        <th>Email</th>
        <th>Password</th>
        <th>Birthdate</th>
        <th>Gender</th>
        <th>Info</th>
        <th>Rang</th>
        <th>Work experience</th>
        <th></th>
    </tr>
    <c:forEach items="${mentors}" var="mentor">
        <tr>
            <td>${mentor.name}</td>
            <td>${mentor.surname}</td>
            <td>${mentor.email}</td>
            <td>${mentor.password}</td>
            <td>${mentor.birthdate}</td>
            <td>${mentor.gender}</td>
            <td>${mentor.info}</td>
            <td>${mentor.rang}</td>
            <td>${mentor.workExperience}</td>
            <td><form action="/maa/do" method="post"><input type="hidden" name="action" value="appoint-mentor"/>
                <input type="hidden" name="mentor-uuid" value=${mentor.uuid}/>
                <input class="btn" type="submit" value="Appoint mentor"/></form></td>
        </tr>
    </c:forEach>
</table>

